
package com.danskin.wechat.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.danskin.wechat.dao.VipVoteDao;
import com.danskin.wechat.entity.VipVote;
import com.danskin.wechat.service.VipVoteService;
import com.danskin.wechat.util.Page;
@Service
public class VipVoteServiceImpl implements VipVoteService{
	@Autowired
	private VipVoteDao vipVoteDao;

	@Override
	public List<VipVote> queryVipVote(String activityId) {
		// TODO Auto-generated method stub
		return vipVoteDao.queryVipVote(activityId);
	}

	@Override
	public List<VipVote> findVipVoteList(Page page) {
		// TODO Auto-generated method stub
		return vipVoteDao.listPageFindVipVoteList(page);
	}

	@Override
	public void deleteVipVote(String id) {
		// TODO Auto-generated method stub
		vipVoteDao.deleteVipVote(id);
	}

	@Override
	public VipVote findvipVotebyId(String id) {
		// TODO Auto-generated method stub
		return vipVoteDao.findvipVotebyId(id);
	}

	@Override
	public void updateVoteService(VipVote vipVote) {
		// TODO Auto-generated method stub
		vipVoteDao.updateVoteService(vipVote);
	}

	@Override
	public List<VipVote> selectVipVoteAndVipOptionByActivityId(Map<String, Object> map) {
		List<VipVote> list = vipVoteDao.selectVipVoteAndVipOptionByActivityId(map);
		return list;
	}
} 
